package com.wglee.faceknowledge.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wglee.faceknowledge.model.Article;

@Controller
public class CommonController {

	@RequestMapping("/index")
	@ResponseBody
	public Article index() {
		Article article = new Article();
		article.setTitle("test Article");
		article.setLink("http://www.naver.com");
		article.setDescription("Hello!!");
		return article;
	}

	@RequestMapping("/hello")
	public String hello() {
		return "/index";
	}
}
